package nl.mayisal.metadata;

import nl.mayisal.metadata.columns.AbstractColumnStructure;

public class TableRelation {
	private final AbstractColumnStructure<?> parentColumn;
	private final TableStructure parentTable;
	private final AbstractColumnStructure<?> foreignColumn;
	private final TableStructure foreignTable;
	
	public TableRelation(TableStructure parentTable,AbstractColumnStructure<?> parentColumn,TableStructure foreignTable,AbstractColumnStructure<?> foreignColumn) {
		this.parentTable = parentTable;
		this.parentColumn = parentColumn;
		this.foreignTable = foreignTable;
		this.foreignColumn = foreignColumn;
	}

	public AbstractColumnStructure<?> getParentColumn() {
		return this.parentColumn;
	}

	public TableStructure getParentTable() {
		return this.parentTable;
	}

	public AbstractColumnStructure<?> getForeignColumn() {
		return this.foreignColumn;
	}

	public TableStructure getForeignTable() {
		return this.foreignTable;
	}
}
